package com.sys.platform.service;

import com.sys.platform.entity.GateRequest;

import java.util.List;
import java.util.Map;

public interface BarrierGateService {

    /**
     * 打开道闸
     *
     * @param gate
     */
    void openBarrierGate(GateRequest gate);

    /**
     * 关闭道闸
     *
     * @param gate
     */
    void close(GateRequest gate);

    List<Map<String, Object>> whiteList(GateRequest gate);

    void addWhiteList(GateRequest gate);

    void delWhiteList(GateRequest gate);

    /**
     * 分配
     *
     * @param gate
     */
    void enable(GateRequest gate);

    /**
     * 销毁
     *
     * @param gate
     */
    void disabled(GateRequest gate);
}
